package com.fili.core.utils;

/**
 * Created by Claudiu-Florin FILIMON
 * Date: Nov 17, 2006
 * Time: 11:45:48 AM
 * Revision: 0
 */
public class PathTrimmer
{
    public static String getFileName(String path)
    {
        int p = path.length() - 1;
        while ((p >= 0) && (path.charAt(p) != '\\') && (path.charAt(p) != '/'))
            p--;
        return path.substring(p + 1);

    }
}
